package com.example.analysis.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * evaluate_supervision
 * @author
 */
public class EvaluateSupervision extends EvaluateSupervisionKey implements Serializable {
    private Double supervisionScore;

    private Date evaTime;

    public Date getEvaTime() {
        return evaTime;
    }

    public void setEvaTime(Date evaTime) {
        this.evaTime = evaTime;
    }

    private static final long serialVersionUID = 1L;

    public Double getSupervisionScore() {
        return supervisionScore;
    }

    public void setSupervisionScore(Double supervisionScore) {
        this.supervisionScore = supervisionScore;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EvaluateSupervision other = (EvaluateSupervision) that;
        return (this.getSupervisionId() == null ? other.getSupervisionId() == null : this.getSupervisionId().equals(other.getSupervisionId()))
            && (this.getTeacherId() == null ? other.getTeacherId() == null : this.getTeacherId().equals(other.getTeacherId()))
            && (this.getQuestId() == null ? other.getQuestId() == null : this.getQuestId().equals(other.getQuestId()))
            && (this.getSubId() == null ? other.getSubId() == null : this.getSubId().equals(other.getSubId()))
            && (this.getSupervisionScore() == null ? other.getSupervisionScore() == null : this.getSupervisionScore().equals(other.getSupervisionScore()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSupervisionId() == null) ? 0 : getSupervisionId().hashCode());
        result = prime * result + ((getTeacherId() == null) ? 0 : getTeacherId().hashCode());
        result = prime * result + ((getQuestId() == null) ? 0 : getQuestId().hashCode());
        result = prime * result + ((getSubId() == null) ? 0 : getSubId().hashCode());
        result = prime * result + ((getSupervisionScore() == null) ? 0 : getSupervisionScore().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", supervisionScore=").append(supervisionScore);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
